/*
 * Copyright (C) 2017-2021
 * All rights reserved, Designed By 深圳中科鑫智科技有限公司
 * Copyright authorization contact 18814114118
 */
package com.shop.cereshop.business.service.order.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shop.cereshop.business.dao.order.CereOrderProductDAO;
import com.shop.cereshop.business.service.order.CereOrderProductService;
import com.shop.cereshop.commons.domain.order.CereOrderProduct;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CereOrderProductServiceImpl extends ServiceImpl<CereOrderProductDAO, CereOrderProduct> implements CereOrderProductService {




    @Override
    public List<CereOrderProduct> queryByOrderId(Long order) {
        LambdaQueryWrapper<CereOrderProduct> q1 = new LambdaQueryWrapper<>();
        q1.eq(CereOrderProduct::getOrderId,order);
        return list(q1);
    }
}
